package com.jy.oms.framework.asyn.task.cluster.model;

import java.util.List;

/**
 * 工作节点可执行的任务
 *
 * @author liuquan
 */
public class WorkNodeExecutableTask {

    /**
     * 任务组编码
     */
    private String taskGroup;

    /**
     * 任务编码集
     */
    private List<String> taskCodes;

    public WorkNodeExecutableTask(String taskGroup) {
        this.taskGroup = taskGroup;
    }

    public WorkNodeExecutableTask(String taskGroup, List<String> taskCodes) {
        this.taskGroup = taskGroup;
        this.taskCodes = taskCodes;
    }

    public String getTaskGroup() {
        return taskGroup;
    }

    public WorkNodeExecutableTask setTaskGroup(String taskGroup) {
        this.taskGroup = taskGroup;
        return this;
    }

    public List<String> getTaskCodes() {
        return taskCodes;
    }

    public WorkNodeExecutableTask setTaskCodes(List<String> taskCodes) {
        this.taskCodes = taskCodes;
        return this;
    }
}
